// 判断当前系统是否为IOS
export function IsAppleStore() {
  let u = navigator.userAgent
  let ios = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)
  let iPad = u.indexOf('iPad') > -1
  let iPhone = u.indexOf('iPhone') > -1 || u.indexOf('Mac') > -1
  return ios || iPad || iPhone
}

// 判断当前系统是否为Android
export function IsAndroidList() {
  let u = navigator.userAgent
  return u.indexOf('Android') > -1 || u.indexOf('Adr') > -1
}
